package pack3;
import zjy.*;
public class test3 {
    public static void main(String[] args) {
        Triangle t1=new Triangle();
        Triangle t2=new Triangle(1,2,5);
        Triangle t3=new Triangle(25,20,37.5);
        System.out.println("默认三角形的面积为"+t1.getArea());
        System.out.println("默认三角形的周长为"+t1.getLength());
        System.out.print("第二个三角形");
        t2.judge();
        System.out.println("第三个三角形的面积为"+t3.getArea());
        System.out.println("第三个三角形的周长为"+t3.getLength());
        YZT x1=new YZT();
        YZT x2=new YZT(2.0,-10.5);
        YZT x3=new YZT(12.5,11.0);
        System.out.println("默认的圆柱体的体积为"+x1.calTJ());
        System.out.println("默认的圆柱体的表面积为"+x1.calBMJ());
        System.out.print("第二个圆柱体");
        x2.judge();
        System.out.println("第三个圆柱体的体积为"+x3.calTJ());
        System.out.println("第三个圆柱体的表面积为"+x3.calBMJ());
    }

}
